package com.cch.cooperation.api.auth.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@ApiModel("用户修改参数")
@Data
public class UserUpdateDTO {

    @ApiModelProperty(value = "id", hidden = true)
    @NotEmpty(message = "id不能为空")
    private String id;

    @ApiModelProperty(value = "昵称，不传则不修改")
    private String nickname;

    @ApiModelProperty("性别（0.男 1.女）")
    private Integer sex;

    @ApiModelProperty(value = "头像地址，不传则不修改")
    private String avatarUrl;

}
